<?php
	include_once('../sys/sys.php');
	header('Content-Type: text/html; charset=utf-8');
	
	
	//文件下载前缀
	$file_url_pre = $_POST['file_url_pre'];
	
	//遍历图片表进行更新
	$DB->build_query(array(
			'select' 	=> 'id,downurl',
			'from'		=> 'gfunappds',
	));
	$qid = $DB->exec_query();
	$pics = '';
	while ($row = $DB->fetch_row($qid)) {
		//基于应用ID查出对应文件链接
		$c_url = $file_url_pre . $row['downurl'];
		//更新文件链接
		$DB->do_update('gfunappds', array(
				'downurl'					=> $c_url,
		),
				'id=' . $row['id'] . ''
		);
		
	}
	echo '更新完毕';
	


?>